﻿using YamlDotNet.Serialization;

namespace Hiver.Util.Config.Model
{
    /// <summary>
    /// MongoDB配置模型
    /// </summary>
    public class Mongo
    {
        /// <summary>
        /// 数据库连接符
        /// </summary>
        [YamlMember(Alias = "connection", ApplyNamingConventions = false)]
        public string ConnectionString { get; set; }

        /// <summary>
        /// 数据库名称
        /// </summary>
        public string Database { get; set; }
    }
}